/**
 * 
 */
package cc.monggo.web.controller.common;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import cc.monggo.common.AbstractBaseController;
import cc.monggo.web.form.NavigateForm;

/**
 * @author Administrator
 *
 */
@Controller
@RequestMapping("/navigate")
public class NavigateJspController extends AbstractBaseController {
	/**
	 * 直接导航到某个JSP
	 * @param request
	 * @param response
	 * @return
	 * @throws Exception
	 */
	@RequestMapping(value = "/jsp",method = RequestMethod.GET)
	public ModelAndView demo(HttpServletRequest request,
			HttpServletResponse response,NavigateForm form) throws Exception {
		String url = form.getUrl();
		ModelAndView mv = new ModelAndView(url);
		return mv;
	}
}
